#include <xp/bas/string.h>
#include <xp/bas/stdio.h>

int xp_main ()
{
	xp_char_t buf[12];
	xp_size_t n;

	xp_strxcpy (buf, xp_countof(buf), XP_TEXT("123."));
	n = xp_strxcap (buf, xp_countof(buf), XP_TEXT("abc"), XP_TEXT("/"), XP_TEXT("defghij"), XP_NULL);
	xp_printf (XP_TEXT("[%s] %lu\n"), buf, (unsigned long)n);
	return 0;
}

